package com.iflytek.web.service;

import com.iflytek.web.entity.User;
import com.iflytek.web.mapper.UserMapper;

public class UserService {


    /**
     * 判断是否登录成功
     *
     * @param account
     * @param password
     * @return true:成功，false：失败
     */
    public boolean loginSuccess(String account, String password) {
        User user = new UserMapper().getByAccountAndPwd(account, password);
        if (null == user) {
            return false;
        }
        return true;
    }


}
